package com.muyu.danmo.service.impl;


import com.muyu.danmo.domain.DanmoArtLevel;
import com.muyu.danmo.mapper.DanmoArtLevelMapper;
import com.muyu.danmo.service.IDanmoArtLevelService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 办学层次Service业务层处理
 *
 * @author yangle
 * @date 2024-10-31
 */
@Service
public class DanmoArtLevelServiceImpl implements IDanmoArtLevelService
{
    @Autowired
    private DanmoArtLevelMapper danmoArtLevelMapper;

    /**
     * 查询办学层次
     *
     * @param id 办学层次主键
     * @return 办学层次
     */
    @Override
    public DanmoArtLevel selectDanmoArtLevelById(Long id)
    {
        return danmoArtLevelMapper.selectDanmoArtLevelById(id);
    }

    /**
     * 查询办学层次列表
     *
     * @param danmoArtLevel 办学层次
     * @return 办学层次
     */
    @Override
    public List<DanmoArtLevel> selectDanmoArtLevelList(DanmoArtLevel danmoArtLevel)
    {
        return danmoArtLevelMapper.selectDanmoArtLevelList(danmoArtLevel);
    }

    /**
     * 新增办学层次
     *
     * @param danmoArtLevel 办学层次
     * @return 结果
     */
    @Override
    public int insertDanmoArtLevel(DanmoArtLevel danmoArtLevel)
    {
        return danmoArtLevelMapper.insertDanmoArtLevel(danmoArtLevel);
    }

    /**
     * 修改办学层次
     *
     * @param danmoArtLevel 办学层次
     * @return 结果
     */
    @Override
    public int updateDanmoArtLevel(DanmoArtLevel danmoArtLevel)
    {
        return danmoArtLevelMapper.updateDanmoArtLevel(danmoArtLevel);
    }

    /**
     * 批量删除办学层次
     *
     * @param ids 需要删除的办学层次主键
     * @return 结果
     */
    @Override
    public int deleteDanmoArtLevelByIds(Long[] ids)
    {
        return danmoArtLevelMapper.deleteDanmoArtLevelByIds(ids);
    }

    /**
     * 删除办学层次信息
     *
     * @param id 办学层次主键
     * @return 结果
     */
    @Override
    public int deleteDanmoArtLevelById(Long id)
    {
        return danmoArtLevelMapper.deleteDanmoArtLevelById(id);
    }
}
